package com.ctshk.rpc.cms.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel(value = "AppHomeSearchResDTO", description = "APP首页搜索框响应对象")
public class AppHomeSearchResDTO implements Serializable, Comparable<AppHomeSearchResDTO> {
    private static final long serialVersionUID = 5815291392234239778L;

    @ApiModelProperty(value = "val")
    private String result;

    @ApiModelProperty(value = "父级名称")
    private String parent;

    @ApiModelProperty(value = "单项类型")
    private Integer type;

    @ApiModelProperty(value = "图标")
    private String icon;

    @ApiModelProperty(value = "是否完全匹配，0：是 1：否")
    private Integer isFull;

    @ApiModelProperty(value = "未完全匹配的产品id")
    private Long id;

    @Override
    public int compareTo(AppHomeSearchResDTO o) {
        return this.getType().compareTo(o.getType());
    }
}
